package com.lishe.lishe.lishe.module.myorder.bean;

import com.google.gson.annotations.SerializedName;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by lwa on 2017/8/12.
 * 商品对象
 */

public class GoodObject implements Serializable {


    @SerializedName("approve")
    private String approve;

    @SerializedName("freez")
    private String freez;

    @SerializedName("item_id")
    private String item_id;

    //商品数
    @SerializedName("num")
    private int num;

    @SerializedName("oid")
    private String oid;

    @SerializedName("pic_path")
    private String pic_path;

    @SerializedName("price")
    private double price;

    @SerializedName("shop_id")
    private String shop_id;

    @SerializedName("sku_id")
    private String sku_id;

    @SerializedName("sku_num")
    private String sku_num;

    @SerializedName("spec_info")
    private String spec_info;

    @SerializedName("store")
    private String store;

    @SerializedName("tid")
    private String tid;

    @SerializedName("title")
    private String title;

    @SerializedName("total_weight")
    private String total_weight;

    /**
     * 购物车商品选中标志
     */
    private boolean isCheck = false;

    /**
     * 商品所在动物车的id
     */
    private String cartId;

    //优惠价
    @SerializedName("mkt_price")
    private double mkt_price;

    public String getApprove() {
        return approve;
    }

    public void setApprove(String approve) {
        this.approve = approve;
    }

    public String getFreez() {
        return freez;
    }

    public void setFreez(String freez) {
        this.freez = freez;
    }

    public String getItem_id() {
        return item_id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getPic_path() {
        return pic_path;
    }

    public void setPic_path(String pic_path) {
        this.pic_path = pic_path;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getShop_id() {
        return shop_id;
    }

    public void setShop_id(String shop_id) {
        this.shop_id = shop_id;
    }

    public String getSku_id() {
        return sku_id;
    }

    public void setSku_id(String sku_id) {
        this.sku_id = sku_id;
    }

    public String getSku_num() {
        return sku_num;
    }

    public void setSku_num(String sku_num) {
        this.sku_num = sku_num;
    }

    public String getSpec_info() {
        if (spec_info.equals("") || spec_info.equals("null")) {
            spec_info = "默认规格";
        }
        return spec_info;
    }

    public void setSpec_info(String spec_info) {
        this.spec_info = spec_info;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTotal_weight() {
        return total_weight;
    }

    public void setTotal_weight(String total_weight) {
        this.total_weight = total_weight;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId;
    }

    public double getMkt_price() {
        return mkt_price;
    }

    public void setMkt_price(double mkt_price) {
        this.mkt_price = mkt_price;
    }
}
